<template>
  <div>
    御剑乘风来,除魔天地间!==app==={{ $store.state.count }}==age: {{ age }}
    <hr />
    获取user模块中的数据:==={{ $store.state.user.userInfo }}
    <hr />
    获取setting模块中的数据:==={{ $store.state.setting.ss }}

    <hr />
    <Father></Father>
    <hr />
    <Mother></Mother>
  </div>
</template>
<script>

import { mapState } from 'vuex'
import Father from './vueStore/Father.vue'
import Mother from './vueStore/Mother.vue'
export default {
  name: '',
  components: {
    Father,
    Mother
  },

  data () {
    return {

    }
  },
  created () {
  },
  computed: {
    ...mapState(['count', 'age',]),
  //   ...mapState('user',{
  //     age: userInfo=>userInfo.age
  //   })
  },
  methods: {
  }
}
</script>
<style lang='less'  scoped>
</style>
